package com.woniuxy.mapper;

import com.woniuxy.entity.ProductComment;
import com.woniuxy.entity.ProductCommentExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;


/*
@author Jan
@create 2020-05-20 19:00

*/ 
   
public interface ProductCommentMapper {
    long countByExample(ProductCommentExample example);

    int deleteByExample(ProductCommentExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ProductComment record);

    int insertSelective(ProductComment record);

    List<ProductComment> selectByExample(ProductCommentExample example);

    ProductComment selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ProductComment record, @Param("example") ProductCommentExample example);

    int updateByExample(@Param("record") ProductComment record, @Param("example") ProductCommentExample example);

    int updateByPrimaryKeySelective(ProductComment record);

    int updateByPrimaryKey(ProductComment record);

    //刘家安  查询该proId的所有评论
    List<ProductComment> selectAllCommentByProId(Map map);
}